// test user request api
const http = uni.$u.http;

//上传文件
export function upload(params){
	return http.post('/api/common/upload', params)
}
//用户端首页
export function index(params){
	return http.post('/api/index/index', params)
}
//处理通知
export function handleNotice(params){
	return http.post('/api/user/handle_notice ', params)
}
//设置通知状态
export function setNoticeStatus(params){
	return http.post('/api/user/setNoticeStatus', params)
}

//首页-报警统计图
export function getIndexAlarmStat(params){
	return http.post('/api/index/getIndexAlarmStat', params)
}

//首页-获取消息列表
export function getIndexList(params){
	return http.post('/api/index/getIndexList', params)
}
//首页-获取消息流程
export function getMsgFlow(params){
	return http.post('/api/index/getMsgFlow', params)
}
//获取通知/任务列表
export function getNoticeList(params){
	return http.post('/api/index/getNoticeList', params)
}
//获取通知/任务列表
export function getAlarmList(params){
	return http.post('/api/index/getAlarmList', params)
}

//获取值班/消息暂停用户+设置
export function getDutyLog(params){
	return http.post('/api/index/getDutyLog', params)
}
//设置值班/消息暂停
export function setDuty(params){
	return http.post('/api/index/setDuty', params)
}
//获取用户列表
export function getUserList(params){
	return http.post('/api/index/getUserList', params)
}
//获取电视台列表
export function getMediaList(params){
	return http.post('/api/index/getMediaList', params)
}
//发送通知
export function userSecondNotice(params){
	return http.post('/api/index/userSecondNotice', params)
}
//大领导获取电视台数据
export function getMediaStat(params){
	return http.post('/api/index/getMediaStat', params)
}


//强制设置值班/消息暂停
export function setForceDuty(params){
	return http.post('/api/index/setForceDuty', params)
}



